<?php

/**
 * AnexoEvento form.
 *
 * @package    form
 * @subpackage AnexoEvento
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class AnexoEventoForm extends BaseAnexoEventoForm
{
  public function configure()
  {
    unset(
      $this['created_at'], $this['updated_at']
    );
  
	$this->widgetSchema['cd_usr_responsavel'] = new sfWidgetFormInputHidden();
	$this->widgetSchema['cd_evento'] = new sfWidgetFormInputHidden();
	$this->widgetSchema['cd_tipo_anexo'] = new sfWidgetFormInputHidden();
	$this->widgetSchema['cd_status_anexo'] = new sfWidgetFormInputHidden();
    $this->widgetSchema['no_anexo'] = new sfWidgetFormInputFile();

	/*$this->setWidgets(array(
		'no_anexo'        => new sfWidgetFormInputFile())
	);*/ 
	
	$this->setValidators(array(
	   'no_anexo' => new sfValidatorFile(array('path' => sfConfig::get('sf_upload_dir').'/ata/', 'max_size' => '1024000', 'required' => true)),
	));
	
	$this->widgetSchema->setNameFormat('ata[%s]');
  }
}